
<script src="{:COMMON_ROOT}/js/common.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>

<script language="JavaScript">

    var vm;

    var VUEOPT = {
        el: '#container',
        data: { loading: 0, loadingTips: '', dialog: 0 },
        methods: {}
    };

    VUEOPT.components = {
        'component-dialog': { props: ['dialog'], template: '#dialog' },
        'component-loading': { props: ['loading'], template: '#loading' }
    };

    VUEOPT.methods.dialogConfirm = function(way){
        if(this.dialog.cb){
            this.dialog.cb(this, way);
        }else{
            this.dialog = 0;
        }
    };
    VUEOPT.methods.loadingMask = function(show){
        this.loading = show;
    }

</script>

</body>
</html>